package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 更新版本信息表
 */
@ApiModel(value = "UpdateVersionInfo对象",description = "更新版本实体类")
@TableName("update_version_info")
@Data
public class UpdateVersionInfo implements Serializable {
    private static final long serialVersionUID = -8620790357546020816L;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否需要强制更新")
    private Boolean IsForcibly = false;

    @ApiModelProperty(value = "MD5主键")
    @TableId(value="MD5")
    private String MD5;

    @ApiModelProperty(value = "更新时间")
    private long PubTime;

    @ApiModelProperty(value = "文件名称")
    private String Name;

    @ApiModelProperty(value = "文件下载地址")
    private String Url;

    @ApiModelProperty(value = "版本号")
    private String Version;

    @ApiModelProperty(value = "更新包类型 1为主程序 2为更新组件")
    private int ClientType;

    @ApiModelProperty(value = "所属软件ID")
    private String projectId;

    @TableField(exist = false)
    @ApiModelProperty(value = "需要更新的版本集合")
    private List<UpdateVersionInfo> UpdateVersions;

    @TableField(exist = false)
    @ApiModelProperty(value = "所属软件信息")
    private ProjectDetailed projectDetailed;
}
